package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
//mybatisplus 继承
public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee findByName(String username);
    List<Employee> findName(String name);
    //员工添加方法
    void save(Employee employee);
//通过id查找对象
    Employee findById(Long id);
//更新方法
    void update(Employee employee);
}
